{set:$comment_total=$this->data['comment_total'];}
{set:$average_point=$this->data['average_point'];$average_point_width=($average_point/5)*70}
{set:$id=intval(IReq::get('id'));}

	{query: name=goods where=id eq $id limit=1}
	<div class="position"> <span>您当前的位置：</span> <a href="{url:}"> 首页</a> » <a href="{url:/site/products/id/$id}">{$item['name']}</a> </div>
	<div class="wrapper clearfix">
		<div class="sidebar f_l">
			<div class="box_2 m_10">
				<div class="title">商品信息</div>
				<div class="content">
					<ul class="prolist clearfix">
						<li>
							<a href="{url:/site/products/id/$id}"><img src="{webroot:}{$item['small_img']}" title="{$item['name']}" alt="{$item['name']}" height="212" width="167"></a>
							<p class="pro_title">商品名称：<a class="blue" href="{url:/site/products/id/$id}">{$item['name']}</a></p>
							<p>优惠价：<b>{$item['sell_price']}</b></p>
							<p>评价得分：<span class="grade"><i style="width:{$average_point_width}px"></i></span>({$average_point}分)</p>
							<p>评论数：{$comment_total}条</p>
						</li>
						<input type="submit" onclick="joinCart_list({$id});" value="加入购物车" class="submit_join m_10">
						<div class="msgbox" style="width:350px;display:none">
							<div class="msg_t"><a class="close f_r" onclick="$(this).parents('.msgbox').hide();">关闭</a>请选择规格</div>
							<div class="msg_c" id='product_box_{$id}'></div>
						</div>
					</ul>
				</div>
			</div>
		</div>
		{/query}
		<div class="main comment_list f_r">
			<div class="tabs">
				<div class="tabs_menu uc_title">
					<label  {echo:IReq::get('type')==null?'class="current"':"";}>
						<span><a href="{url:/site/comments_list/id/$id}">全部评论（{$comment_total})条</a></span>
					</label>
					<label  {echo:IReq::get('type')=='good'?'class="current"':"";}>
						<span><a href="{url:/site/comments_list/id/$id/type/good}">好评（{$this->data['point_grade']['good']}条）</a></span>
					</label>
					<label  {echo:IReq::get('type')=='middle'?'class="current"':"";}>
						<span><a href="{url:/site/comments_list/id/$id/type/middle}">中评（{$this->data['point_grade']['middle']}条）</a></span></label>
					<label  {echo:IReq::get('type')=='bad'?'class="current"':"";}>
						<span><a href="{url:/site/comments_list/id/$id/type/bad}">差评（{$this->data['point_grade']['bad']}条）</a></span>
					</label>
				</div>

				<div class="tabs_content">

					{foreach:items=$this->data['comment_list'] key=$key item=$item}
					{set:$point_width=($item['point']/5)*70}
					<div class="node item">
						<div class="user">
							<div class="ico"><img src="{webroot:}{$item['head_ico']}" width="70" height="70" onerror="this.src='{skin:images/front/user_ico.gif}'" /></div>
							<a class="blue">{$item['username']}</a>
							<p class="gray">({$item['user_group_name']})</p>
							<p class="gray"></p>
						</div>
						<dl class="desc">
							<p class="clearfix"><b>评分：</b><span class="grade"><i style="width:{$point_width}px"></i></span><span class="light_gray">{$dateline}</span><label></label></p>
							<hr />
							<p><b>评语：</b><span class="gray">{$item['contents']}</span></p>
						</dl>
						<div class="corner b"></div>
						<div class="corner tl"></div>
					</div>
					<hr />
					{/foreach}

					<div class="pages_bar">
						{$this->comment_query->getPageBar()}
					</div>
				</div>
			</div>
		</div>
	</div>
